package org.im.service.message.util;

import org.im.service.message.webmsg.WebMessage;

import com.alibaba.fastjson.JSON;

public class MessageUtil {

	public static WebMessage createMessageFromString(String msg) {
		try {
			return JSON.parseObject(msg, WebMessage.class);
		} catch (Exception e) {
			return null;
		}
	}
}
